<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Biblioteca</title>
</head>
<body>
	<h1>Empréstimos</h1>
	<h:form>
		<h:dataTable value="#{usuarioMB.emprestimos}" var="emprestimo">
	 		<h:column>
	    		<f:facet name="header">Livro</f:facet>
	    		#{emprestimo.livro}
	    	</h:column>
	    	<h:column>
	    		<h:link value="devolver" outcome="mostrar_emprestimo.xhtml">
    				<f:param name="id" value="#{emprestimo.id}" />
				</h:link>
	    	</h:column>
		</h:dataTable>
	</h:form>
</body>
</html>